package cn.fl.riskctrl.brdb.transform;

import java.util.ArrayList;
import java.util.List;

import cn.cmm.base.framework.utils.CollectionUtils;
import fl.riskctrl.facade.brdb.dto.BrscrLmmpSpeLstDTO;
import cn.fl.riskctrl.brdb.vo.BrscrLmmpSpeLstVO;


 /**
 * @Description: 百融评分-特殊名单(通过联系人手机号)核查
  说明:
  1、取“空/0/1/2”；空：未命中，0：本人直接命中，1：一度关系命中，2：二度关系命中
   转换器
 * @Description: VO是客户端传递数据到服务端进行转换的数据 
 * @Description: VO转换数据变成DTO传递到服务端 
 * @Description: VO不能在服务端出现
 */
public class BrscrLmmpSpeLstVOTransform {


	/**
	 * DTO 转  VO
	 * @param po BrscrLmmpSpeLstDTO
	 * @return BrscrLmmpSpeLstVO
	 */
	public static BrscrLmmpSpeLstVO toVO(BrscrLmmpSpeLstDTO dto) {
		BrscrLmmpSpeLstVO  vo = null;
		if (dto != null) { 
			vo = new BrscrLmmpSpeLstVO();
			vo.setId(dto.getId());
			vo.setSlLmCellAbnormal(dto.getSlLmCellAbnormal());//通过联系人手机查询高危行为(sl_lm_cell_abnormal)
			vo.setSlLmCellPhoneOverdue(dto.getSlLmCellPhoneOverdue());//通过联系人手机查询电信欠费(sl_lm_cell_phone_overdue)
			vo.setSlLmCellBankBad(dto.getSlLmCellBankBad());//通过联系人手机查询银行(含信用卡)不良(sl_lm_cell_bank_bad)
			vo.setSlLmCellBankOverdue(dto.getSlLmCellBankOverdue());//通过联系人手机查询银行(含信用卡)短时逾期(sl_lm_cell_bank_overdue)
			vo.setSlLmCellBankFraud(dto.getSlLmCellBankFraud());//通过联系人手机查询银行(含信用卡)资信不佳(sl_lm_cell_bank_fraud)
			vo.setSlLmCellBankLost(dto.getSlLmCellBankLost());//通过联系人手机查询银行(含信用卡)失联(sl_lm_cell_bank_lost)
			vo.setSlLmCellBankRefuse(dto.getSlLmCellBankRefuse());//通过联系人手机查询银行(含信用卡)拒绝(sl_lm_cell_bank_refuse)
			vo.setSlLmCellNbankP2pBad(dto.getSlLmCellNbankP2pBad());//通过联系人手机查询非银-P2P不良(sl_lm_cell_nbank_p2p_bad)
			vo.setSlLmCellNbankP2pOverdue(dto.getSlLmCellNbankP2pOverdue());//通过联系人手机查询非银-P2P短时逾期(sl_lm_cell_nbank_p2p_overdue)
			vo.setSlLmCellNbankP2pFraud(dto.getSlLmCellNbankP2pFraud());//通过联系人手机查询非银-P2P资信不佳(sl_lm_cell_nbank_p2p_fraud)
			vo.setSlLmCellNbankP2pLost(dto.getSlLmCellNbankP2pLost());//通过联系人手机查询非银-P2P失联(sl_lm_cell_nbank_p2p_lost)
			vo.setSlLmCellNbankP2pRefuse(dto.getSlLmCellNbankP2pRefuse());//通过联系人手机查询非银-P2P拒绝(sl_lm_cell_nbank_p2p_refuse)
			vo.setSlLmCellNbankMcBad(dto.getSlLmCellNbankMcBad());//通过联系人手机查询非银-小贷不良(sl_lm_cell_nbank_mc_bad)
			vo.setSlLmCellNbankMcOverdue(dto.getSlLmCellNbankMcOverdue());//通过联系人手机查询非银-小贷短时逾期(sl_lm_cell_nbank_mc_overdue)
			vo.setSlLmCellNbankMcFraud(dto.getSlLmCellNbankMcFraud());//通过联系人手机查询非银-小贷资信不佳(sl_lm_cell_nbank_mc_fraud)
			vo.setSlLmCellNbankMcLost(dto.getSlLmCellNbankMcLost());//通过联系人手机查询非银-小贷失联(sl_lm_cell_nbank_mc_lost)
			vo.setSlLmCellNbankMcRefuse(dto.getSlLmCellNbankMcRefuse());//通过联系人手机查询非银-小贷拒绝(sl_lm_cell_nbank_mc_refuse)
			vo.setSlLmCellNbankCaBad(dto.getSlLmCellNbankCaBad());//通过联系人手机查询非银-现金类分期不良(sl_lm_cell_nbank_ca_bad)
			vo.setSlLmCellNbankCaOverdue(dto.getSlLmCellNbankCaOverdue());//通过联系人手机查询非银-现金类分期短时逾期(sl_lm_cell_nbank_ca_overdue)
			vo.setSlLmCellNbankCaFraud(dto.getSlLmCellNbankCaFraud());//通过联系人手机查询非银-现金类分期资信不佳(sl_lm_cell_nbank_ca_fraud)
			vo.setSlLmCellNbankCaLost(dto.getSlLmCellNbankCaLost());//通过联系人手机查询非银-现金类分期失联(sl_lm_cell_nbank_ca_lost)
			vo.setSlLmCellNbankCaRefuse(dto.getSlLmCellNbankCaRefuse());//通过联系人手机查询非银-现金类分期拒绝(sl_lm_cell_nbank_ca_refuse)
			vo.setSlLmCellNbankComBad(dto.getSlLmCellNbankComBad());//通过联系人手机查询非银-代偿类分期不良(sl_lm_cell_nbank_com_bad)
			vo.setSlLmCellNbankCfBad(dto.getSlLmCellNbankCfBad());//通过联系人手机查询非银-消费类分期不良(sl_lm_cell_nbank_com_overdue)
			vo.setSlLmCellNbankCfOverdue(dto.getSlLmCellNbankCfOverdue());//通过联系人手机查询非银-消费类分期短时逾期(sl_lm_cell_nbank_com_fraud)
			vo.setSlLmCellNbankCfFraud(dto.getSlLmCellNbankCfFraud());//通过联系人手机查询非银-消费类分期资信不佳(sl_lm_cell_nbank_com_lost)
			vo.setSlLmCellNbankCfLost(dto.getSlLmCellNbankCfLost());//通过联系人手机查询非银-消费类分期失联(sl_lm_cell_nbank_com_refuse)
			vo.setSlLmCellNbankCfRefuse(dto.getSlLmCellNbankCfRefuse());//通过联系人手机查询非银-消费类分期拒绝(sl_lm_cell_nbank_cf_bad)
			vo.setSlLmCellNbankOtherBad(dto.getSlLmCellNbankOtherBad());//通过联系人手机查询非银-其他不良(sl_lm_cell_nbank_cf_overdue)
			vo.setSlLmCellNbankOtherOverdue(dto.getSlLmCellNbankOtherOverdue());//通过联系人手机查询非银-其他短时逾期(sl_lm_cell_nbank_cf_fraud)
			vo.setSlLmCellNbankOtherFraud(dto.getSlLmCellNbankOtherFraud());//通过联系人手机查询非银-其他资信不佳(sl_lm_cell_nbank_cf_lost)
			vo.setSlLmCellNbankOtherLost(dto.getSlLmCellNbankOtherLost());//通过联系人手机查询非银-其他失联(sl_lm_cell_nbank_cf_refuse)
			vo.setSlLmCellNbankOtherRefuse(dto.getSlLmCellNbankOtherRefuse());//通过联系人手机查询非银-其他拒绝(sl_lm_cell_nbank_other_bad)
			vo.setSlLmCellNbankComOverdue(dto.getSlLmCellNbankComOverdue());//通过联系人手机查询非银-代偿类分期短时逾期(sl_lm_cell_nbank_other_overdue)
			vo.setSlLmCellNbankComFraud(dto.getSlLmCellNbankComFraud());//通过联系人手机查询非银-代偿类分期资信不佳(sl_lm_cell_nbank_other_fraud)
			vo.setSlLmCellNbankComLost(dto.getSlLmCellNbankComLost());//通过联系人手机查询非银-代偿类分期失联(sl_lm_cell_nbank_other_lost)
			vo.setSlLmCellNbankComRefuse(dto.getSlLmCellNbankComRefuse());//通过联系人手机查询非银-代偿类分期拒绝(sl_lm_cell_nbank_other_refuse)
			vo.setReportNo(dto.getReportNo());//报告编号-关联报告表ID

			vo.setCrtTm(dto.getCrtTm());//创建时间
			vo.setCrtUsrId(dto.getCrtUsrId());//创建人
			vo.setMdfTm(dto.getMdfTm());//修改时间
			vo.setMdfUsrId(dto.getMdfUsrId());//修改人
		}
		return vo;
	}

	/**
	 * VO 转 DTO
	 * @param dto BrscrLmmpSpeLstVO
	 * @return BrscrLmmpSpeLstDTO
	 */
	public static BrscrLmmpSpeLstDTO toDTO(BrscrLmmpSpeLstVO vo) {
		BrscrLmmpSpeLstDTO dto = null;
		if (vo != null) {
			dto = new BrscrLmmpSpeLstDTO();
			dto.setId(vo.getId());
			dto.setSlLmCellAbnormal(vo.getSlLmCellAbnormal());//通过联系人手机查询高危行为(sl_lm_cell_abnormal)
			dto.setSlLmCellPhoneOverdue(vo.getSlLmCellPhoneOverdue());//通过联系人手机查询电信欠费(sl_lm_cell_phone_overdue)
			dto.setSlLmCellBankBad(vo.getSlLmCellBankBad());//通过联系人手机查询银行(含信用卡)不良(sl_lm_cell_bank_bad)
			dto.setSlLmCellBankOverdue(vo.getSlLmCellBankOverdue());//通过联系人手机查询银行(含信用卡)短时逾期(sl_lm_cell_bank_overdue)
			dto.setSlLmCellBankFraud(vo.getSlLmCellBankFraud());//通过联系人手机查询银行(含信用卡)资信不佳(sl_lm_cell_bank_fraud)
			dto.setSlLmCellBankLost(vo.getSlLmCellBankLost());//通过联系人手机查询银行(含信用卡)失联(sl_lm_cell_bank_lost)
			dto.setSlLmCellBankRefuse(vo.getSlLmCellBankRefuse());//通过联系人手机查询银行(含信用卡)拒绝(sl_lm_cell_bank_refuse)
			dto.setSlLmCellNbankP2pBad(vo.getSlLmCellNbankP2pBad());//通过联系人手机查询非银-P2P不良(sl_lm_cell_nbank_p2p_bad)
			dto.setSlLmCellNbankP2pOverdue(vo.getSlLmCellNbankP2pOverdue());//通过联系人手机查询非银-P2P短时逾期(sl_lm_cell_nbank_p2p_overdue)
			dto.setSlLmCellNbankP2pFraud(vo.getSlLmCellNbankP2pFraud());//通过联系人手机查询非银-P2P资信不佳(sl_lm_cell_nbank_p2p_fraud)
			dto.setSlLmCellNbankP2pLost(vo.getSlLmCellNbankP2pLost());//通过联系人手机查询非银-P2P失联(sl_lm_cell_nbank_p2p_lost)
			dto.setSlLmCellNbankP2pRefuse(vo.getSlLmCellNbankP2pRefuse());//通过联系人手机查询非银-P2P拒绝(sl_lm_cell_nbank_p2p_refuse)
			dto.setSlLmCellNbankMcBad(vo.getSlLmCellNbankMcBad());//通过联系人手机查询非银-小贷不良(sl_lm_cell_nbank_mc_bad)
			dto.setSlLmCellNbankMcOverdue(vo.getSlLmCellNbankMcOverdue());//通过联系人手机查询非银-小贷短时逾期(sl_lm_cell_nbank_mc_overdue)
			dto.setSlLmCellNbankMcFraud(vo.getSlLmCellNbankMcFraud());//通过联系人手机查询非银-小贷资信不佳(sl_lm_cell_nbank_mc_fraud)
			dto.setSlLmCellNbankMcLost(vo.getSlLmCellNbankMcLost());//通过联系人手机查询非银-小贷失联(sl_lm_cell_nbank_mc_lost)
			dto.setSlLmCellNbankMcRefuse(vo.getSlLmCellNbankMcRefuse());//通过联系人手机查询非银-小贷拒绝(sl_lm_cell_nbank_mc_refuse)
			dto.setSlLmCellNbankCaBad(vo.getSlLmCellNbankCaBad());//通过联系人手机查询非银-现金类分期不良(sl_lm_cell_nbank_ca_bad)
			dto.setSlLmCellNbankCaOverdue(vo.getSlLmCellNbankCaOverdue());//通过联系人手机查询非银-现金类分期短时逾期(sl_lm_cell_nbank_ca_overdue)
			dto.setSlLmCellNbankCaFraud(vo.getSlLmCellNbankCaFraud());//通过联系人手机查询非银-现金类分期资信不佳(sl_lm_cell_nbank_ca_fraud)
			dto.setSlLmCellNbankCaLost(vo.getSlLmCellNbankCaLost());//通过联系人手机查询非银-现金类分期失联(sl_lm_cell_nbank_ca_lost)
			dto.setSlLmCellNbankCaRefuse(vo.getSlLmCellNbankCaRefuse());//通过联系人手机查询非银-现金类分期拒绝(sl_lm_cell_nbank_ca_refuse)
			dto.setSlLmCellNbankComBad(vo.getSlLmCellNbankComBad());//通过联系人手机查询非银-代偿类分期不良(sl_lm_cell_nbank_com_bad)
			dto.setSlLmCellNbankCfBad(vo.getSlLmCellNbankCfBad());//通过联系人手机查询非银-消费类分期不良(sl_lm_cell_nbank_com_overdue)
			dto.setSlLmCellNbankCfOverdue(vo.getSlLmCellNbankCfOverdue());//通过联系人手机查询非银-消费类分期短时逾期(sl_lm_cell_nbank_com_fraud)
			dto.setSlLmCellNbankCfFraud(vo.getSlLmCellNbankCfFraud());//通过联系人手机查询非银-消费类分期资信不佳(sl_lm_cell_nbank_com_lost)
			dto.setSlLmCellNbankCfLost(vo.getSlLmCellNbankCfLost());//通过联系人手机查询非银-消费类分期失联(sl_lm_cell_nbank_com_refuse)
			dto.setSlLmCellNbankCfRefuse(vo.getSlLmCellNbankCfRefuse());//通过联系人手机查询非银-消费类分期拒绝(sl_lm_cell_nbank_cf_bad)
			dto.setSlLmCellNbankOtherBad(vo.getSlLmCellNbankOtherBad());//通过联系人手机查询非银-其他不良(sl_lm_cell_nbank_cf_overdue)
			dto.setSlLmCellNbankOtherOverdue(vo.getSlLmCellNbankOtherOverdue());//通过联系人手机查询非银-其他短时逾期(sl_lm_cell_nbank_cf_fraud)
			dto.setSlLmCellNbankOtherFraud(vo.getSlLmCellNbankOtherFraud());//通过联系人手机查询非银-其他资信不佳(sl_lm_cell_nbank_cf_lost)
			dto.setSlLmCellNbankOtherLost(vo.getSlLmCellNbankOtherLost());//通过联系人手机查询非银-其他失联(sl_lm_cell_nbank_cf_refuse)
			dto.setSlLmCellNbankOtherRefuse(vo.getSlLmCellNbankOtherRefuse());//通过联系人手机查询非银-其他拒绝(sl_lm_cell_nbank_other_bad)
			dto.setSlLmCellNbankComOverdue(vo.getSlLmCellNbankComOverdue());//通过联系人手机查询非银-代偿类分期短时逾期(sl_lm_cell_nbank_other_overdue)
			dto.setSlLmCellNbankComFraud(vo.getSlLmCellNbankComFraud());//通过联系人手机查询非银-代偿类分期资信不佳(sl_lm_cell_nbank_other_fraud)
			dto.setSlLmCellNbankComLost(vo.getSlLmCellNbankComLost());//通过联系人手机查询非银-代偿类分期失联(sl_lm_cell_nbank_other_lost)
			dto.setSlLmCellNbankComRefuse(vo.getSlLmCellNbankComRefuse());//通过联系人手机查询非银-代偿类分期拒绝(sl_lm_cell_nbank_other_refuse)
			dto.setReportNo(vo.getReportNo());//报告编号-关联报告表ID

			dto.setCrtTm(vo.getCrtTm());//创建时间
			dto.setCrtUsrId(vo.getCrtUsrId());//创建人
			dto.setMdfTm(vo.getMdfTm());//修改时间
			dto.setMdfUsrId(vo.getMdfUsrId());//修改人
		}
		return dto;
	}
}
